setup.exe 1.0 (Freeware) (c) 1994 by Mey & Westphal RIPOSTE Software GbR Schottweg 1 22087 Hamburg Germany Tel +49-(0)40-22 17 23 Fax +49-(0)40-22 17 72 CIS 100111,305 Installation program bootstrap utility. Replacement for setup.exe from Microsoft included in the VB setupkit directory. Main features: - Works with VB programs running during installation. - Creates a temporary directory, thus does not clutter the windows directory with setup files. - Does not rely on specific libraries on the target system. Restrictions: - Requires MS-Windows 3.1 - LZEXPAND.DLL must be present on the target system Usage: Preparing setup master disks: 1. Prepare application master disks with all files belonging to the application. 2. Copy the main installation program and all the necessary libs etc. to the first master disk (e.g. setup1.exe, vbrun300.dll, threed.vbx, setup1.ini etc.). Use compress.exe if file compression is needed. The use of the -r switch is optional. 3. Also copy setup.exe to the first master disk. 4. Adapt this setup.ini to the needs of the application setup program, i.e. register in section [Files] the files belonging to the main setup program. See below for details. Running setup to install an application: 1. Start setup.exe on the first master disk. a. setup.exe will change the default drive/dir to its home directory. b. setup.exe will create a temporary directory in the current windows directory and copy all files listed in the [Files] section to it. c. setup.exe will try to run the main setup application and wait for it to terminate. d. setup.exe deletes the temporary directory. Your main setup program: - It will be called with the source drive letter on the command line, e.g. mysetup.exe a: - setup.exe will start your main setup program in MAXIMIZED window state. - The application path for your main setup program will be the temporary directory created by setup.exe. In VB use app.Path to access files in the temporary directory, e.g. dummy = GetPrivateProfileString(..., app.Path & "\mysetup.ini") setup.exe may be renamed as needed. setup.ini must not be renamed! Commented setup.ini contents: [Dialog] ; Caption and message to be displayed in the small message box during setup bootstrap Caption=Setup Bootstrap Message=Setup Programm initialisieren... [Errormessages] ; Customizable error messages. %s is a C-parameter for the printf() function. It will be ; replaced with appropriate information by setup.exe. ; If no entry for an error message can be found, a default message in English language will ; be displayed. Err0=Full path of temp dir too long. Err1=Unable to create temp dir. Err2=%s : Unable to run main install program from temp dir. Err3=%s : Unable to copy file from installation drive to temp dir. Err4=%s : Could not change default dir. Err5=%s : Could not change default drive. Err6=Not enough resources to run main installation program. [Files] ; Syntax: ; target filename = [ source filename ] ; The source filename is optional. ; You need not provide it if the source filename is the same as the ; target filename or just has a ´_´ as the last character in its name. ; E.g. myprog.exe= is equal to: ; myprog.exe=myprog.exe or ; myprog.exe=myprog.ex_ ; No path must be included in the target filename. ; *** The first entry in the section must be the main setup program *** project1.exe= vbrun300.dll= project1.ini=project.in_